<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>

<fieldset>
	<legend>Pagamento</legend>
	
	<label>
		Valor da Parcela: <strong>${installment.value}</strong> 
	</label>
	<label>
		Parcela: <strong>${installment.installmentNumber}/${installment.spent.numberInstallments}</strong> 
	</label>
	<label>
		Valor Total da Compra: <strong>${installment.spent.value}</strong> 
	</label>
	<label>
		Evento da Compra: <strong>${installment.spent.event.name}</strong> 
	</label>
	<label>
		Data da Compra: <strong><joda:format value="${installment.spent.spentDay}" style="M-" /></strong> 
	</label>
</fieldset>


<form method="post" action="/Orcamento/payment/saveRefund">
	<fieldset>
		<legend>Pagamento</legend>
		<label>
			Valor de Estorno da Parcela
			<input type="text" name="payment.value" required placeholder="Valor de Estorno" class="money">
		</label>
		<input type="hidden" name="payment.id" value="${installment.id}">
		<button type="submit" class="btn" id="submit">Cadastrar</button>
	</fieldset>
	
</form>